﻿using furion.blog.Application.Contracts;
using furion.blog.Domain.IRepositories;
using furion.blog.Domain.MySQL;
using Furion.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Application
{
    public class BaseInfoService : IBaseInfoService, ISingleton
    {
        private readonly IBaseInfoRepository _baseInfoRepository;

        public BaseInfoService(IBaseInfoRepository baseInfoRepository) {
            this._baseInfoRepository = baseInfoRepository;
        }

        /// <summary>
        /// 查询所有配置信息
        /// </summary>
        /// <returns></returns>
        public async Task<List<BaseInfo>> All() {
            return await _baseInfoRepository.All();
        }

    }
}
